package com.tedu.egmybatis3.mapper;

import com.tedu.egmybatis3.pojo.Customers;
import com.tedu.egmybatis3.pojo.CustomersVO1;
import com.tedu.egmybatis3.pojo.CustomersVO2;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CustomersMapper {
    int insert(Customers customers);

    CustomersVO1 selectById (String custId);
    // 第3题：根据客户编号查询某个客户的 **姓名和电话**，结果：`CustomersVO1

    List<CustomersVO2> selectByCity(String city);

}
